<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws.
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations).
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./site/public/user/index.php, $Author:  $ */


//load target user
$oReq = &App::getRequest();
$sUser = $oReq->get('name');

$oSrvAcc = &App::getModuleService('Account', 'Account');
/* @var $oSrvAcc PhpFox_Mod_Account_ServiceAccount */

$oSrvAcc->addProfileView($sUser);

App::loadAjax(array('Comment', 'Smiles'), array(
	'newComment',
	'loadEmoticons'
));

$oTpl = &App::getTemplate();
$oTpl->assignSrc(array(
    'bShowBlog'     => !App::getSetting('profile_display_blog'),
    'bShowComment'  => !App::getSetting('profile_display_comment'),
    'bShowMusic' => true,
    'bShowVisitors' => App::getSetting('profile_hide_visitors'),
    'lightbox' => true,
    'iTotalComments' => App::getParam('profile_gb_total')
));
?>